package kin.bean.security;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

import kin.annotation.system.KinColumn;
import kin.annotation.system.KinForm;
import kin.annotation.system.Method;
import kin.annotation.system.Trigger;


/**
 * 
 * @author Administrator
 * @hibernate.class table="T_Role"
 */

@Entity
@Table(name="t_role")
public class Role{

	@Id
	@GeneratedValue
	@KinColumn(hidden=true,editor=false,xtype="numberfield",sort=2)
	@KinForm(hidden=true,editor=false,xtype="numberfield",sort=2)
    private int role_id;
	
	@Column(length=20,nullable=false,name="role_name")
	@KinColumn(header="label.role.add",editor=true,sort=1)
	@KinForm(label="label.role.add",editor=true,sort=1)
	@Size(min=3,max=20)
	@NotNull(message="{}")
	private String role_name;

	

	

	public int getRole_id() {
		return role_id;
	}

	public void setRole_id(int role_id) {
		this.role_id = role_id;
	}

	public String getRole_name() {
		return role_name;
	}

	public void setRole_name(String role_name) {
		this.role_name = role_name;
	}

}
